﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WCS.Infrastructure.Dto.Request.Epaylinks
{
    /// <summary>
    /// 联系人信息
    /// </summary>
    public class EpaylinksContactInfo
    {
        /// <summary>
        /// 联系人姓名，长度限制为 40
        /// </summary>
        [MaxLength(40)]
        public string ContactPerson { get; set; }

        /// <summary>
        /// 邮箱地址，收单商户新增时必填，修改时参数无效，长度限制为 40
        /// </summary>
        [MaxLength(40)]
        public string? Email { get; set; }

        /// <summary>
        /// 联系人手机号码，修改时参数无效，长度限制为 15
        /// </summary>
        [MaxLength(15)]
        public string? ContactPhone { get; set; }

        /// <summary>
        /// 联系人身份类型，0：经办人；1：法人（默认）
        /// </summary>
        public string ContactType { get; set; } = "1";

        /// <summary>
        /// 联系人证件类型，经办人时必需，长度限制为 2
        /// </summary>
        [MaxLength(2)]
        public string? ContactCertType { get; set; }

        /// <summary>
        /// 联系人证件号码，经办人时必需，长度限制为 40
        /// </summary>
        [MaxLength(40)]
        public string? ContactCertNo { get; set; }

        /// <summary>
        /// 联系人证件有效期（起始），格式：yyyymmdd，经办人时必需，长度限制为 8
        /// </summary>
        [MaxLength(8)]
        public string? ContactCertFrom { get; set; }

        /// <summary>
        /// 联系人证件有效期（截止），格式：yyyymmdd，无限期填写“长期”，经办人时必需，长度限制为 8
        /// </summary>
        [MaxLength(8)]
        public string? ContactCertTo { get; set; }

        /// <summary>
        /// 联系人证件照正面，文件标识（fileID），限图片，参考附件上传，经办人时必需
        /// </summary>
        [MaxLength(64)]
        public string? ContactPhotoFront { get; set; }
        public string? ContactPhotoFrontURL { get; set; }

        /// <summary>
        /// 联系人证件照背面，文件标识（fileID），限图片，参考附件上传，经办人时必需
        /// </summary>
        [MaxLength(64)]
        public string? ContactPhotoBack { get; set; }
        public string? ContactPhotoBackURL { get; set; }

        /// <summary>
        /// 联系人业务办理授权函，文件标识（fileID），参考附件上传，经办人时必需
        /// </summary>
        [MaxLength(64)]
        public string? ContactBusinessAuth { get; set; }
        public string? ContactBusinessAuthURL { get; set; }
    }

}
